package top.juntower.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.juntower.dao.FirstPageMapper;
import top.juntower.pojo.Carousel;
import top.juntower.pojo.FoodMatching;
import top.juntower.pojo.dto.FootDta;
import top.juntower.pojo.vo.RankingFootVo;
import top.juntower.service.FirstPageService;

import java.util.List;

@Service
public class FirstPageServiceImpl implements FirstPageService {

    @Autowired
    private FirstPageMapper firstPageMapper;

    @Override
    public List<Carousel> queryFirstPageLunBoTu() {
        return firstPageMapper.queryFirstPageLunBoTu();
    }

    @Override
    public List<RankingFootVo> queryRecommendation() {
        return firstPageMapper.queryRecommendation();
    }

    @Override
    public List<RankingFootVo> queryChineseFood(Integer ftId) {
        return firstPageMapper.queryChineseFood(ftId);
    }

    @Override
    public List<RankingFootVo> queryChineseFoodRanking(Integer ftId) {
        return firstPageMapper.queryChineseFoodRanking(ftId);
    }

    @Override
    public List<FootDta> queryLikeFoot(String footName, Integer pageNum, Integer pageSize) {
        return firstPageMapper.queryLikeFoot(footName,pageNum,pageSize);
    }

    @Override
    public List<FoodMatching> queryFoodMatchingRanking() {
        return firstPageMapper.queryFoodMatchingRanking();
    }

}
